﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqToOracle
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                //using (var dx = new orclDataContext())
                using (var dx = new yqznDataContext())
                {
                    var stud = from help in dx.Bwcls select help;
                    Console.WriteLine(stud.Count());
                    foreach (var stu in stud)
                    {
                        Console.WriteLine("name: " + stu.Bwcl01);
                    }
                    Console.ReadKey();
                }            
            }
                catch(Exception ex)
            {
                throw ex;}
        }
    }
}
